Don't use a transient node in gtk_render_arrow()
authorMatthias Clasen <mclasen@redhat.com>
Mon, 9 Nov 2015 01:27:22 +0000 (20:27 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 9 Nov 2015 02:08:38 +0000 (21:08 -0500)
It is not necessary for the users of this API, and causes things
to not work as intended. Without this transient node, styling
"notebook header tabs arrow" has the desired effect on notebook
arrows.

gtk/gtkrender.c

index 4f986bbf5afff5c70bc714fcf5d8e6a3b733e21f..d8abadc85f2abc76121ca144523ccaccde78e3e0 100644 (file)
@@ -236,12 +236,8 @@ gtk_render_arrow (GtkStyleContext *context,
   cairo_save (cr);
   cairo_new_path (cr);
 
-  gtk_style_context_save (context);
-  gtk_style_context_add_class (context, GTK_STYLE_CLASS_ARROW);
-
   gtk_do_render_arrow (context, cr, angle, x, y, size);
 
-  gtk_style_context_restore (context);
   cairo_restore (cr);
 }